The font `FontAwesome` cannot be found
ChenZhijin
.com

The font `FontAwesome` cannot be found

The font FontAwesome cannot be found

I met this error when using XǝLaTeX with the package moderncv.

This is due to in fontawesome.sty, it referenced FontAwesome by its name, but my MacTeX didn’t install the font into system (This time I installed with homebrew cask.)

Solution

locate fontawesome.sty in system. It can be found in error message.

In my case it is in:

1
/usr/local/texlive/2018/texmf-dist/tex/latex/fontawesome/fontawesome.sty

replace the “2018” with the version you have.

Then edit the file with root permission from:

1
\newfontfamily{\FA}{FontAwesome}

to:

1
\newfontfamily{\FA}[Path=/usr/local/texlive/2018/texmf-dist/fonts/opentype/public/fontawesome/, Extension=.otf]{FontAwesome}

Again, remember to replace the “2018” with the version you have.

Done!

Reference: https://tex.stackexchange.com/a/176322

Tagged with: